using System.Data.Entity;
using Orange.Logistics.Models;

namespace Orange.Logistics {
    public class LogisticsContext : DbContext {
        public LogisticsContext() {
            //Database first.
            Database.SetInitializer<LogisticsContext>(null);
        }

        public DbSet<Product> Products { get; set; }
        public DbSet<Customer> Customers { get; set; }
        public DbSet<Group> Groups { get; set; }
        public DbSet<CustomerGroup> CustomerGroups { get; set; }
        public DbSet<Module> Modules { get; set; }
        public DbSet<Job> Jobs { get; set; }
        public DbSet<VenueStaff> VenueStaffs { get; set; }
        public DbSet<Store> Stores { get; set; }
        public DbSet<Rack> Racks { get; set; }
        public DbSet<ProductBrand> ProductBrands { get; set; }
        public DbSet<Contract> Contracts { get; set; }
        public DbSet<ContractRate> ContractRates { get; set; }
        public DbSet<SysUser> SysUsers { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<UserRole> UserRoles { get; set; }
        public DbSet<Permission> Permissions { get; set; }
        public DbSet<RolePermission> RolePermissions { get; set; }
        public DbSet<ModulePermission> ModulePermissions { get; set; }
        public DbSet<Stock> Stocks { get; set; }
        public DbSet<StockDetail> StockDetails { get; set; }
        public DbSet<Memorycard> Memorycards { get; set; }
        public DbSet<BillRecord> BillRecords { get; set; }
    }
}